/*******************************************************************************
 * Copyright (c) 2013 Zero Square LLC.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Zero Square LLC. Version 1
 * which accompanies this distribution
 ******************************************************************************/
package com.zsqr.dashboard.dao;

import com.zsqr.dashboard.commons.dao.GenericDao;
import com.zsqr.dashboard.domain.UserEntity;

/**
 * Data accessobject interface to work with UserEntity database opretaion
 * @author Saurabh
 *
 */

public interface UserDao extends GenericDao<UserEntity,Long>{
	
	/**
	 * Queries Database for user name availability
	 * @param userName
	 * @return true if requested user name available
	 */
	boolean checkAvailable(String userName);
	
	/**
	 * Queries for username
	 * @param userName
	 * @return UserEntity
	 */
	UserEntity loadUserByUserName (String userName);
	
	//create user
	boolean createUser(UserEntity userEntity);

}
